﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AllProducts.aspx.cs" Inherits="ASP.NET_Routing_Table.Products.AllProducts" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:gridview ID="Gridview1" runat="server" AutoGenerateColumns="False" DataSourceID="Objectdatasource1">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:CheckBoxField DataField="InStock" HeaderText="InStock" SortExpression="InStock" />
            <asp:TemplateField HeaderText="Edit">
                <ItemTemplate>
                    <a href="javascript:__doPostBack('ctl00$LinkButton1','')">Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        </asp:gridview>
<asp:objectdatasource ID="Objectdatasource1" runat="server" SelectMethod="GetAll" TypeName="ASP.NET_Routing_Table.BusinessLayer.ProductsOperations"></asp:objectdatasource>
        <br />
        <br />
        <a href="/Products/Add">Add</a></div>
    </form>
</body>
</html>

